<template>
	    <view>
	        <view class="page-body">
	            <!-- <view class="page-section page-section-gap"> -->
	                <map style="width: 100%; height: 260px;" :latitude="latitude" :longitude="longitude" :markers="covers">
	                </map>
	            <!-- </view> -->
	        </view>
	    </view>
</template>

<script>
export default {
    data() {
        return {
      id:0, // 使用 marker点击事件 需要填写id
            title: 'map',
            latitude: 36.090276,
            longitude: 120.378991,
            covers: [{
                latitude: 39.909,
                longitude: 116.39742,
                iconPath: '../../../static/location.png'
            }, {
                latitude: 39.90,
                longitude: 116.39,
                iconPath: '../../../static/location.png'
            }]
        }
    },
    methods: {


    },
	setup(){
		uni.chooseLocation({
							success: function(res) {
								console.log('位置名称：' + res.name);
								console.log('详细地址：' + res.address);
								console.log('纬度：' + res.latitude);
								console.log('经度：' + res.longitude);
								let latitude = res.latitude; //纬度
								let longitude = res.longitude; //经度
							}
						})
	}
}
</script>

<style>

</style>
